package com.sumainfor.pc.epc.service.impl;

import com.sumainfor.pc.epc.dao.ArticleMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * 功能描述:
 * 维修物品
 * @Auther: zhlu
 * @Date: 2019/3/6 19:17
 * @Description:
 */
@Service
public class ArticleService {

    @Autowired
    ArticleMapper ArticleMapper;

    /**
     * 功能描述: 
     * 获取物品清单分类
     * @Author zhlu
     * @Description //TODO
     * @Date 2019/3/6 19:18
     */
    public List<Map<String,Object>> getArticleTypeList(Map<String,Object>params){
        List<Map<String,Object>> getArticleTypeList=ArticleMapper.getArticleTypeList(params);
        return getArticleTypeList;
    }

    /**
     * 功能描述: 
     * 根据物品分类获取物品
     * @Author zhlu
     * @Description //TODO
     * @Date 2019/3/6 19:19
     */
    public List<Map<String,Object>>getArticleList(Map<String,Object>params){
        List<Map<String,Object>>getArticleList=ArticleMapper.getArticleList(params);
        return getArticleList;
    }

    /**
     * 功能描述: 
     * 根据物品获取物品故障描述
     * @Author zhlu
     * @Description //TODO
     * @Date 2019/3/6 19:20
     */
    public List<Map<String,Object>>getArticleTroubleList(Map<String,Object>params){
        List<Map<String,Object>>getArticleTroubleList=ArticleMapper.getArticleTroubleList(params);
        return getArticleTroubleList;
    }

}
